package mobi.hami.huapin.service;

import io.swagger.models.auth.In;
import mobi.hami.huapin.dto.SKUPresentDTO;
import mobi.hami.huapin.model.UserOrderDetail;

import java.util.List;

/**
 * Create by 小峰 on 2018/9/1.
 */
public interface UserOrderDetailService {

    List<UserOrderDetail> getListByOrderId(Integer id);

    /**
     * 包含所有
     * @param id
     * @return
     */
    List<UserOrderDetail> getListByOrderIdAll(Integer id);


    int addList(List<UserOrderDetail> userOrderDetailList,Integer orderId);

    Integer saveUserOrderDetailByModel(UserOrderDetail userOrderDetail);


    /**
     * 增加赠品到订单信息中
     * @param skuPresent
     * @param orderId
     * @return
     */
    Integer instanceUserOrderDetail(SKUPresentDTO skuPresent, Integer orderId,String orderCode);
}
